import { BrowserRouter, useRoutes, Link } from 'react-router-dom'
import routes from '@/routes/index'
import './App.css'
import { test } from '@utils/test'

function AppRoutes() {
  return useRoutes(routes)
}

function App() {
  console.log(test(1,2))
  return (
    <BrowserRouter>
      <nav style={{ marginBottom: 16 }}>
        <Link to="/">首页</Link> | <Link to="/about">关于</Link>
      </nav>
      <AppRoutes />
    </BrowserRouter>
  )
}

export default App